<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<script type="text/javascript" src="/js/flot/excanvas.min.js"></script>
<script type="text/javascript" src="/js/flot/jquery.colorhelpers.min.js"></script>
<script type="text/javascript" src="/js/flot/jquery.flot.min.js"></script>
<script type="text/javascript" src="/js/flot/jquery.flot.categories.min.js"></script>
<script type="text/javascript" src="/js/flot/jquery.flot.crosshair.min.js"></script>
<script type="text/javascript" src="/js/flot/jquery.flot.errorbars.js"></script>
<script type="text/javascript" src="/js/flot/jquery.flot.fillbetween.min.js"></script>
<script type="text/javascript" src="/js/flot/jquery.flot.image.min.js"></script>
<script type="text/javascript" src="/js/flot/jquery.flot.navigate.min.js"></script>
<script type="text/javascript" src="/js/flot/jquery.flot.pie.min.js"></script>
<script type="text/javascript" src="/js/flot/jquery.flot.resize.min.js"></script>
<script type="text/javascript" src="/js/flot/jquery.flot.selection.min.js"></script>
<script type="text/javascript" src="/js/flot/jquery.flot.stack.min.js"></script>
<script type="text/javascript" src="/js/flot/jquery.flot.symbol.min.js"></script>
<script type="text/javascript" src="/js/flot/jquery.flot.threshold.min.js"></script>
<script type="text/javascript" src="/js/flot/jquery.flot.time.min.js"></script>

<div class="title">
	<s:label cssClass="current fl" key="manager.home.title" />
	<div class="clear"></div>
	<hr class="title" />
</div>

<div class="title">
	<div class="fr">
		<div style="width: 555px; height: 400px; border: 1px; border-color: #FFEEAA; border-style: solid; background-color: #FFFFEE">
			<span class="plr"><b>统计图:</b></span>
			<div id="stat" class="fr" style="width: 540px; height: 360px;">
				<script type="text/javascript">
					var d1 = [];
					for (var i = 0; i < 14; i += 0.5) {
						d1.push([ i, Math.sin(i) ]);
					}
					var d2 = [ [ 0, 3 ], [ 4, 8 ], [ 8, 5 ], [ 9, 13 ] ];
					var d3 = [ [ 0, 12 ], [ 7, 12 ], null, [ 7, 2.5 ],
							[ 12, 2.5 ] ];
					$.plot("#stat", [ {
						data : d2,
						label : "测试"
					} ], {
						series : {
							lines : {
								show : true
							},
							points : {
								show : true
							}
						},
						grid : {
							hoverable : true,
							clickable : true
						}
					});
				</script>
			</div>
		</div>
	</div>
	<div class="plr fl" style="width: 520px; border: 1px; border-color: #FFEEAA; border-style: solid; background-color: #FFFFEE">
		<ul class="home h24">
			<li class="w100"><b>个人信息：</b></li>
			<li class="w140"><s:a href="/manager/infoEdit.html">信息修改</s:a></li>
			<li class="w140"><s:a href="/manager/passwordEdit.html">密码修改</s:a></li>
		</ul>
		<ul class="home h24">
			<li class="w100"><b>餐厅信息：</b></li>
			<li class="w140"><s:a href="/manager/restEdit.html">信息修改</s:a></li>
			<li class="w140"><s:a href="/manager/serviceEdit.html">送餐服务</s:a></li>
			<li class="w140"><s:a href="/manager/annEdit.html">公告设置</s:a></li>
		</ul>
	</div>
	<div class="plr fl" style="width: 520px; border: 1px; border-color: #FFEEAA; border-style: solid; background-color: #FFFFEE;  z-index: 0;">
		<ul class="clear home h24">
			<li class="w100"><b>业务运行:</b></li>
			<li class="w140"><s:a href="/manager/userList.html">注册用户</s:a></li>
			<li class="w140">在线用户[<s:property value="userLoginCount" />]</li>
		</ul>
		<ul class="clear home h24">
			<li class="w100"><b>业务管理:</b></li>
			<li class="w140"><s:a href="/manager/restList.html">今日订单[<s:property value="restCount" />]</s:a></li>
			<li class="w140"><s:a href="/manager/userList.html">今日交易额[<s:property value="userCount" />]</s:a></li>
			<li class="w140"><s:a href="/manager/userLogin.html">今日交易数[<s:property value="userLoginCount" />]</s:a></li>
		</ul>
		<ul class="clear home h24">
			<li class="w100"><b>消息管理:</b></li>
			<li class="w140">
				<s:a action="msgList">
					全部消息
					<s:param name="flowStatusId" value="9"></s:param>
				</s:a>
			</li>
			<li class="w140">
				<s:a action="msgAdd">
					发送新消息
					<s:param name="fromUrl" value="%{servletPath}"></s:param>
				</s:a>
			</li>
			<li class="w140">
				<s:a action="msgList">
					未回复[<s:property value="msgCount0" />]
					<s:param name="flowStatusId" value="0"></s:param>
				</s:a>
			</li>
		</ul>
		<ul class="clear home h24">
			<li class="w100">&nbsp;</li>
			<li class="w140">
				<s:a action="msgList">
					已回复[<s:property value="msgCount1" />]
					<s:param name="flowStatusId" value="1"></s:param>
				</s:a>
			</li>
			<li class="w140">
				<s:a action="msgList">
					已忽略[<s:property value="msgCount8" />]
					<s:param name="flowStatusId" value="8"></s:param>
				</s:a>
			</li>
		</ul>
		<ul class="clear home h24">
			<li class="w100"><b>菜品管理:</b></li>
			<li class="w140"><s:a href="/manager/foodList.html">全部菜品</s:a></li>
			<li class="w140"><s:a href="/manager/foodCopy.html">菜品拷贝</s:a></li>
		</ul>
		<ul class="clear home h24">
			<li class="w100"><b>活动管理:</b></li>
			<li class="w140"><s:a href="/manager/campaignList.html">活动列表</s:a></li>
			<li class="w140"><s:a href="/manager/campaignAdd.html">活动新增</s:a></li>
		</ul>
		<ul class="clear home h24">
			<li class="w100"><b>广告管理:</b></li>
			<li class="w140"><s:a href="/manager/msgList.html">广告列表[<s:property value="restCount" />]</s:a></li>
			<li class="w140"><s:a href="/manager/msgList.html">新增广告</s:a></li>
			<li class="w140"><s:a href="/manager/msgList.html">广告统计</s:a></li>
		</ul>
		<ul class="clear home h24">
			<li class="w100"><b>积分管理:</b></li>
			<li class="w140"><s:a href="/manager/msgList.html">新增积分[<s:property value="restCount" />]</s:a></li>
			<li class="w140"><s:a href="/manager/msgList.html">消耗积分[<s:property value="restCount" />]</s:a></li>
		</ul>
	</div>
	<div class="plr fl" style="width: 520px; border: 1px; border-color: #FFEEAA; border-style: solid; background-color: #FFFFEE">
		<ul class="home h24">
			<li class="w100">
				<b>系统运行:</b>
			</li>
			<li class="w140">
				最大内存:<s:property value="maxMemory" />M
			</li>
			<li class="w140">
				内存总量:<s:property value="totalMemory" />M
			</li>
			<li class="w140">
				空闲内存:<s:property value="freeMemory" />M
			</li>
		</ul>
		<ul class="home h24">
			<li class="w100">&nbsp;</li>
			<li class="w140">
				运行时间:<s:property value="startDateInterval.date" />天
			</li>
			<li class="w140">
				总交易量:<s:property value="totalMemory" />笔
			</li>
			<li class="w140">
				总交易额:<s:property value="freeMemory" />元
			</li>
		</ul>	
		<ul class="home h24">
			<li class="w100">
				<b>本次登录时间:</b>
			</li>
			<li class="w160">
				<s:date name="currentLoginDate" format="%{#request.dateFormat}" />
			</li>
			<li class="w100">
				<b>上次登录时间:</b>
			</li>
			<li class="w160">
				<s:date name="lastLoginDate" format="%{#request.dateFormat}" />
			</li>
		</ul>
	</div>
</div>